package com.wlz.mapper;

import com.wlz.bean.HomeBean;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.special.InsertListMapper;
import tk.mybatis.mapper.provider.SpecialProvider;

import java.util.List;

@org.apache.ibatis.annotations.Mapper
public interface HomeMapper extends Mapper<HomeBean>, InsertListMapper<HomeBean> {

    @Options(keyProperty = "homeId",useGeneratedKeys = true)
    @InsertProvider(type = SpecialProvider.class, method = "dynamicSQL")
    int insertList(List<? extends HomeBean> recordList);
}
